package com.weizai.carshop.model.dto;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class QueryShopCateDto {

    private Integer page;

    private Integer pageSize;

    private String keywords;

    public void validate( ) {
        if(this.page == null) {
            page = 1;
        }
        if(this.pageSize == null) {
            pageSize = 10;
        }
    }
}
